Previous Book Contents Book Index Next

Inside Macintosh: Mac OS 8 Toolbox Reference /
Chapter 4 - Dialog Manager Reference / Dialog Manager Types and Constants
The Standard Alert Structure


Alert Default Text Constants

NEW WITH THE APPEARANCE MANAGER

You can use these constants in the defaultText, cancelText, and otherText fields of the standard alert structure to specify the default text for the OK, Cancel, and Don't Save buttons.

enum {
   kAlertDefaultOKText     = -1,    
   kAlertDefaultCancelText = -1, 
   kAlertDefaultOtherText  = -1  
};

Constant descriptions

kAlertDefaultOKText
The default text for the default (right) button is "OK" on an English system. The text will vary depending upon the localization of the user's system. Use this constant in the defaultText field of the standard alert structure.
kAlertDefaultCancelText
The default text for the Cancel (middle) button is "Cancel" on an English system. The text will vary depending upon the localization of your system. Use this constant in the cancelText field of the standard alert structure.
kAlertDefaultOtherText
The default text for the third (leftmost) button is "Don't Save" for an English system. The text will vary depending upon the localization of the user's system. Use this constant in the otherText field of the standard alert structure.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
8 JAN 1998